package com.effort.com.effort.excle.controller;

import com.effort.com.effort.excle.core.util.ServerResponse;
import com.effort.com.effort.excle.query.BaseQuery;
import com.effort.com.effort.excle.service.QueryService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class QueryController {

    @Resource
    private QueryService queryService;

    @PostMapping("baseQuery")
    public ServerResponse query(@RequestBody BaseQuery query){
        return this.queryService.baseQuery(query);
    }

}
